package com.ktjy.ch15.service;

import com.ktjy.ch15.entity.SysUser;
import com.ktjy.ch15.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface SysUserService {

    public SysUser findByPassword(@Param("oldPassword") String oldPassword);

    public SysUser login(String account, String password);

    public Page<SysUser> findPage(SysUser sysUser, Integer pageNo, Integer pageSize);

    public boolean save(SysUser sysUser);

    public SysUser findById(Long id);

    public boolean update(SysUser sysUser);

    public boolean delete(Long id);

    public SysUser findByAccount(@Param("account") String account);

}
